package com.chinazyjr.framework.common.enums;

/**
 * 短信模板枚举
 *
 * @author lijunke
 * @date 2017/11/6
 */
public enum SMSTemplateEnum {
	/**
	 * 好利网
	 */
    SEND_VERIFICATION_CODE("013275", "发送验证码"),
    FORGET("013284", "忘记密码"),
    BUY_TAG_SUCCESS_HLW("013286", "买标成功"),
    RECHARGE_SUCCESS("013288", "充值成功"),
    ACHIEVE_AUDIT_PASS("013290", "满标审核通过"),
    WITHDRAWALS_SUCCESS("013293", "提现成功"),
    BIRTHDAY_REMIND("013289", "生日提醒"),
    UPDATE_PAY_PASSWORD_SUCCESS("013305", "修改支付密码成功"),
    UPDATE_PASSWORD_SUCCESS("013304", "修改密码成功"),
    REPAY_SUCCESS("013291", "还款成功"),
    WITHDRAWALS_AUDIT_FAIL("013287", "提现审核失败"),
    WITHDRAWALS_APPLY_SUCCESS("013292", "提现申请成功"),
    REGISTER_VERIFICATION_CODE("015009", "注册验证码"),
    REPLACE_MOBILE_NUMBER("018273", "更换手机号码"),
    APPLY_WITHDRAWALS("015011", "申请提现"),
    BINDING_MOBILE("015019", "绑定手机"),
    VICTORY_PLAN_LAST_REPAY("018994", "赢计划最后一期还款"),
    REGISTER_SUCCESS("019715", "注册成功"),
    WITHDRAWALS_FAIL("019872", "提现失败"),
    VICTORY_PLAN_REPAY_NOT_LEAST_A("019873", "赢计划还款低于0.01"),
    BUY_YINPIAO("016001", "购买银票"),
    YINPIAO_REPAY("016002", "银票还款"),
    iINITIAL_PASSWORD("016003", "注册成功"),

	/**
	 * 卓投
	 */
    INVEST_PAYMENT("025686", "投资回款"),
    MODIFY_LOGIN_PWD("023378", "修改登录密码"),
    FIND_LOGIN_PWD("025263", "找回登录密码"),
    BUY_TAG_SUCCESS_ZZT("025863", "购买成功"),
    WITHDRAWALS_FAIL_REMIND("025312", "代提现3次失败提醒"),
    ONETIME_INVEST_PAYMENT("026001", "投资回款（一次结清）"),
    REGISTER("023001", "注册");

    /**
     * 枚举值
     */
    private String code;

    /**
     * 枚举名称
     */
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    SMSTemplateEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 根据code取得msg
     *
     * @param code
     * @return
     */
    public static String getName(String code) {
        for (SMSTemplateEnum type : SMSTemplateEnum.values()) {
            if (code.equals(type.getCode())) {
                return type.getMsg();
            }
        }
        return "";
    }

}
